
import service from "./request";

// 专业管理
export function coursepage(params,page =1){
    return service({
    url: '/admin/student/course/page/' + page,
    method: 'get',
    params: params
  })
}
// 专业 页数
export function coursepageCount(params){
    return service({
    url: '/admin/student/course/page/count',
    method: 'get',
    params: params
  })
}
// 课程的名称/admin/department/names
export function coursenames(){
    return service({
    url: '/admin/course/names',
    method: 'get',
  })
}
// 获取学生的名字
export function studentnames(){
    return service({
    url: '/admin/student/names',
    method: 'get',
  })
}
// 添加
export function courseadd(data){
    return service({
    url: '/admin/student/course/',
    method: 'post',
    data
  })
}
// 删除
export function coursedelet(id){
    return service({
    url: '/admin/student/course/'+id,
    method: 'delete',
  })
}
// id获取信息
export function coursedetail(id){
    return service({
    url: '/admin/student/course/'+id,
    method: 'get',
  })
}
// 编辑
export function courseedit(data){
    return service({
    url: '/admin/student/course/',
    method: 'put',
    data
  })
}